{$CLEO .cs}
{$use cleo+}
0000:

model.Load(#WMYMECH) 
038B: load_requested_models



while $onmission >= 1   
wait 0      
    if  00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 1743.908 -2055.7104 13.5781 radius 100.0 100.0 100.0
    then
        if not is_actor_defined 0@
        then
            if not marker_enabled 1@
            then
               1@ = marker.CreateIconWithoutSphere(30,  1743.908, -2055.7104, 13.5781)
            end
             0@ = actor.Create(4 , #WMYMECH ,  1743.908, -2055.7104, 13.5781)     
             actor.Angle( 0@  ) =  192.2127
             actor.Health( 0@ ) = 2500
             0446: set_actor 0@ dismemberment_possible 0  
             marker.CreateAboveActor(2@, 0@ )
             07E0: set_marker 2@ type_to 1
             018B: set_marker 2@ radar_mode 2

             wait 100   
        end 
    else
        
        if is_actor_defined  0@
        then
            actor.DestroyInstantly( 0@ )
        end 
            if  marker_enabled 1@
            then
                marker.Disable(1@ )
            end        
            if  marker_enabled 2@
            then
                marker.Disable(2@ )
            end        
        wait 100
    end 
    
    if is_actor_defined 0@
    then
        if actor.Dead(0@)
        then
            if  marker_enabled 2@
            then
                marker.Disable(2@ )
            end      
        end
       if and 
        not   actor.Dead(0@)
        not  actor.Driving(0@ )
        8965:  not   actor 0@ swimming
        02A0:   actor 0@ stopped
         not is_char_fighting 0@
        82E0: not  actor 0@ firing_weapon
         not is_char_doing_any_important_task 0@ include_anims 1
       then
          if   and
                02A0:   actor $PLAYER_ACTOR stopped
                not  actor.Driving($PLAYER_ACTOR )   
               0104:   actor $PLAYER_ACTOR near_actor 0@ radius 5.0 5.0 5.0 sphere 0
          then
            010B: 4@ = player $PLAYER_CHAR money
            if 32@ > 5000
            then
                if $WAVE >= 1
                then
                    32@ = 0 
                    if  010A:   player $PLAYER_CHAR money > 1500
                 // 4@ >= 500
                    then
    
                   $WAVE = 0 
                   018C: play_sound 1052 at 0.0 0.0 0.0
                   show_styled_text "There we go, your notoriety is all erased with some of your cash." 3000 5
                   0109: player $PLAYER_CHAR money_reduce_to -1500
                    else
                    show_styled_text "Sorry bro, you don't have enough, comeback if you have more." 3000 5
                    018C: play_sound 1053 at 0.0 0.0 0.0
                    end 
                else
                  32@ = 0 
                   show_styled_text "You got no wanted level buddy, comeback if you have one." 3000 5
                   018C: play_sound 1053 at 0.0 0.0 0.0
    
                end 
            end
          end
       end 
    end 
end 
//Cleanup 
if is_actor_defined  0@
then
    actor.DestroyInstantly( 0@ )
end 
if  marker_enabled 1@
then
marker.Disable(1@ )
end        
if  marker_enabled 2@
then
marker.Disable(2@ )
end             
model.destroy(#WMYMECH) 
terminate_this_custom_script